from fastapi import APIRouter

# 导入各个功能模块的路由
from app.api.v1.endpoints import items, rabbitmq_demo, user
# from app.api.v1.endpoints import users, auth

api_router = APIRouter()

# 包含各个功能模块的路由
api_router.include_router(items.router, prefix="/items", tags=["items"])
api_router.include_router(rabbitmq_demo.router, prefix="/mq", tags=["mq"])
api_router.include_router(user.router, prefix="/user", tags=["user"])
# api_router.include_router(auth.router, prefix="/auth", tags=["auth"])

# 为了演示，添加一个简单的示例路由
@api_router.get("/example")
async def example_route():
    return {"message": "This is an example endpoint"}